package com.example.jsondemo;

import android.app.Application;
import android.content.Context;

public final class MainApplication extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
    }

    // 获取全局context的静态接口
    public static Context getContext() {
        return context;
    }
}
